//
//  LGFollowRecordVolumeView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/7/18.
//  录音动画

#import "LGFollowRecordVolumeView.h"

@interface LGFollowRecordVolumeView()
/**   */
@property (nonatomic , strong)UIImageView *volumeView;
/**   */
@property (nonatomic , strong)UILabel *descLabel;

@end

@implementation LGFollowRecordVolumeView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.volumeView];
        [self.volumeView addSubview:self.descLabel];
    }
    return self;
}

-(void)setVolume:(CGFloat)volume{
    _volume = volume;
    
}

-(void)setDescContent:(NSString *)descContent{
    _descContent = descContent;
}

-(UIImageView *)volumeView{
    if(!_volumeView){
        _volumeView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"随访录音-音量1"]];
        _volumeView.frame = CGRectMake((Screen_W-viewPix(156))/2.0, (Screen_H-viewPix(158))/2.0, viewPix(156), viewPix(158));
    }
    return _volumeView;
}

-(UILabel *)descLabel{
    if(!_descLabel){
        _descLabel = [UILabel lableWithText:@"手指上滑，取消发送" colorString:@"#FFFFFF" textFont:LGFont(14) textAlignment:NSTextAlignmentCenter lines:1];
        _descLabel.frame = CGRectMake(0, viewPix(122), viewPix(156), viewPix(22));
    }
    return _descLabel;
}

@end
